<template>
  <div class="title-card">
    <!-- <el-col :span="24">
      <span>
        <span>12.27亿元</span>
        <p>全市非税收入额</p>
      </span>
    </el-col> -->

    <div style="position: relative">
      <img src="./1-2.png" style="width: 100%" />
      <div
        style="
          position: absolute;
          z-indent: 2;
          left: 20%;
          top: 50%;
          transform: translate(-50%, -50%);
          border-right: 0.5rem solid #fff;
        "
      >
        <el-col :span="24">
          <span style="margin: auto 0; font-size: 1.5rem; line-height: 2rem">
            <p style="font-size:3rem">{{ cockpitData.num||  cockpitData.num1}}<span style="font-size:1rem">{{cockpitData.unit||  cockpitData.dw}}</span></p>
            <p>{{ cockpitData.title||cockpitData.title1 }}</p>
          </span>
        </el-col>
      </div>
      <div
        style="
          position: absolute;
          z-indent: 2;
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
        "
      >
        <el-col :span="24">
          <span style="margin: auto 0; font-size: 1.5rem; line-height: 2rem">
            <p style="font-size:3rem">{{ cockpitData.ratio ||cockpitData.bfnum+"%"}} <span style="font-size:1rem">{{cockpitData.tb_title||cockpitData.title2}}</span></p>
           
          </span>
        </el-col>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    cockpitData: {
      type: Object,
      default: function () {
        return {
          num: "0",
          ratio: "0",
          ratio_unit: "个",
          tb_title: "同比",
          title: "接入单位数量",
          unit: "个",
        };
      },
    },
  },
};
</script>

<style>
</style>